package com.ronghui.cash.interceptor;


import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

/**
 * 检查贷前是否已认证
 * 
 * @author Administrator
 * 
 */
public class CheckAuthInterceptor extends HandlerInterceptorAdapter {


	/*@Autowired
	AuthService authService;

	@Autowired
	RedisTemplate redisTemplate;

	@Override
	public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
		String token = request.getParameter("token");

		AuthProject apActivate = authService.getAuthProject(redisTemplate.opsForValue().get("access:token:" + token), ConstUtil.ACTIVATE);
		if (apActivate == null) {
			request.getRequestDispatcher("/errorPage403.json").forward(request, response);
			return false;
		}

		return true;
	}*/

}